import router from '@system.router';

export default {
    data: {
        timeRange: [1, 2, 3],
        time: 1,
        spendRange: ["较慢", "舒缓", "较快"],
        spend: '较慢'
    },
    onInit() {
        console.info("index页面 onInit")
    },
    onReady() {
        console.info("index页面 onReady")
    },
    onShow() {
        console.info("index页面 onShow")
    },
    onHide() {
        console.info("index页面 onHide")
    },
    onDestroy() {
        console.info("index页面 onDestroy")
    },
    handleClick() {
        router.replace({
            uri: "pages/countdown/countdown",
//            uri: "pages/test/test",
            params:{
                time:this.time,
                spend:this.spend
            },
        })
    },
    handleTimeChange(e) {
        this.time = e.newValue
    },
    handleSpendChange(e) {
        this.spend = e.newSelected
    }
}
